package com.itheima.demo01.Object;

import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner;

public class Demo01ToString {
    public static void main(String[] args) {
        Person p = new Person("张三", 18);
        System.out.println(p);
        System.out.println(p.toString());
        System.out.println("============");
        Random r=new Random();
        System.out.println(r);
        Scanner sc=new Scanner(System.in);
        System.out.println(sc);
        ArrayList<Integer> list=new ArrayList<>();
        list.add(1);
        list.add(2);
        System.out.println(list);
    }
}
